package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 规格表
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopSpecPageDTO", description = "规格表")
public class ShopSpecPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 规格名称
     */
    @ApiModelProperty(value = "规格名称")
    @NotEmpty(message = "规格名称不能为空")
    @Length(max = 50, message = "规格名称长度不能超过50")
    private String specName;
    /**
     * 排序值
     */
    @ApiModelProperty(value = "排序值")
    private Integer sortOrder;
    /**
     * 规格类型：1-普通 2-套餐
     */
    @ApiModelProperty(value = "规格类型：1-普通 2-套餐")
    private Integer specType;
    /**
     * 可否自定义规格值：1-是 2-否
     */
    @ApiModelProperty(value = "可否自定义规格值：1-是 2-否")
    private Integer customize;
    /**
     * 状态：0-启用 1-禁用 2-删除
     */
    @ApiModelProperty(value = "状态：0-启用 1-禁用 2-删除")
    private Integer status;

}
